import base64
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5

# 私钥解密
# 输入解密数据
msg='I8+BCd4HwRrE7yyYatgI2Q/j1i4Kh31aMqf124UOQNMbJ5ZmVNSw+1ghv2hzumT5JZG4BL/iCk2Pt2AQexW0REGLt1r+PiSn/uR77qQ3gGNWUmYgre9msOaHFj0p7Y1qL8EXz6CMbbLTwBew3jtCx9WIr+9JKFRuVwLaSYyJAE0='

# 通过base64解码
m = base64.b64decode(msg)
# 读取私钥
private = open('private.pem').read()
private_key = RSA.import_key(private)
# 创建解密对象
pk = PKCS1_v1_5.new(private_key)
result = pk.decrypt(m, 'DecryptError')
print(result.decode())
